﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>正则表达式</title>	
	</head>
	<body>
	<script type="text/javascript">
	var lists = ["23423423w","w34234","as234w","2w3"];
	var reg = /\d+w$/gi;
	/*
	for(var i=0,count=lists.length;i<count;i++){
		var r = reg.test(lists[i]);
		alert(r);
	}*/
	</script>
	</body>
</html>